package com.easyaccount.commons;

import java.util.List;

public class TablePage<T> {

    public int count;
    public int code;
    public int page;
    public int limit;
    public List<T> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "TablePage{" +
                "count=" + count +
                ", page=" + page +
                ", limit=" + limit +
                ", data=" + data +
                '}';
    }
}
